<?php
namespace Utils;
require_once __DIR__."/../Model/Tip.php";
require_once __DIR__."/../Utils/Contains.php";

use Model\Tip;
use Utils\Contains;
/**
 * Description of UserUtils
 *
 * @author Administrator
 */
class TipUtils {
    //put your code here
    //put your code here
     public static function Add($data) {
       $tip=new Tip((Array)json_decode($data));
      if($tip->insert())
          return array("code"=>200);
      else
          return array("code"=>400);
    }
}